home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / water_ba.swf / scripts / DefineSprite_591_quitbutton / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-21  |  530 b   |  32 lines

  1. audio.onPress = function()
  2. {
  3.    audclik = [1,2];
  4.    if(click == 1)
  5.    {
  6.       click = 0;
  7.    }
  8.    else
  9.    {
  10.       click++;
  11.    }
  12.    audio.gotoAndStop(audclik[click]);
  13.    if(audclik[click] == 2)
  14.    {
  15.       _root.globalsoundcontrol.setVolume(0);
  16.    }
  17.    else
  18.    {
  19.       _root.globalsoundcontrol.setVolume(100);
  20.    }
  21. };
  22. audio.onRollOver = function()
  23. {
  24.    _root.holdit = true;
  25.    _root.cursorz.gotoAndStop(3);
  26. };
  27. audio.onRollOut = function()
  28. {
  29.    _root.holdit = false;
  30.    _root.cursorz.gotoAndStop(1);
  31. };
  32.